package com.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;
@Data
@TableName("spot")
public class Spot {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private String description;
    private String location;
    private String openTime;
    private Double ticketPrice;
    private String imageUrl;
    private String spotUrl;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}

